package com.aierjun.idcardorclib;

import android.content.Context;

import com.googlecode.tesseract.android.TessBaseAPI;

/**
 * Created by Ani_aierJun on 2017/9/28.
 */

public class init {
    public static TessBaseAPI initOCR(Context context) {
        TessBaseAPI tessBaseAPI = IDCardNativeUtils.initOCRFile(context.getApplicationContext());
        IDCardNativeUtils.openIDCardOCR();
        return tessBaseAPI;
    }

    public static void closeOCR() {
        IDCardNativeUtils.closeIDCardOCR();
    }


}
